package com.mhr.service.impl;

import com.mhr.dao.AdminMapper;
import com.mhr.pojo.Admin;
import com.mhr.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author manster
 * @Date 2021/5/26
 **/
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin login(String name) {
        return adminMapper.getPassword(name);
    }
}
